home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_gnats.idb / usr / freeware / lib / gnats / contrib / sql / Iprms.setup.z / Iprms.setup
Encoding:
Text File  |  1999-04-16  |  959 b   |  37 lines

  1. #!/bin/sh
  2.  
  3. # set up
  4.  
  5. PATH=.:/bin:/usr/bin:/usr/unsupported/bin:/usr/unsupported/informix/bin
  6. INFORMIXDIR=/usr/unsupported/informix
  7. DBPATH=/users/db/infx
  8. DBTEMP=/tmp
  9.  
  10. export PATH
  11. export INFORMIXDIR
  12. export DBPATH
  13. export DBTEMP
  14.  
  15. BUGDIR=/users/db/reports
  16. INFX=/usr/unsupported/informix/bin
  17.  
  18. #---------------------------------------------------------------
  19. # query the GNATS db for derivative data
  20. #---------------------------------------------------------------
  21.  
  22. query_pr -sql > $BUGDIR/gnats`date +%y%m%d`
  23. cp $BUGDIR/gnats`date +%y%m%d` $BUGDIR/gnats.curr
  24.  
  25. #---------------------------------------------------------------
  26. # load into informix database
  27. #---------------------------------------------------------------
  28.  
  29. $INFX/isql engdb loadGNATS.sql
  30.  
  31. #---------------------------------------------------------------
  32. # calculate age of non-closed bugs and update db
  33. #---------------------------------------------------------------
  34.  
  35. cd $DBPATH
  36. $INFX/fglgo calc_age
  37.